package org.hxyjs.dao;

import org.hxyjs.entity.FocusOnTheTypeOfCompetition;
import org.hxyjs.page.PageInfo;
import java.util.List;

public interface FocusOnTheTypeOfCompetitionDao {

    //查询全部
    public List<FocusOnTheTypeOfCompetition> getAllFocusOnTheTypeOfCompetitions() throws Exception;

    //按主键查询
    public FocusOnTheTypeOfCompetition getFocusOnTheTypeOfCompetitionByFocno(String focno) throws Exception;

    //分页查询
    public List<FocusOnTheTypeOfCompetition> getFocusOnTheTypeOfCompetitionByPage(PageInfo pageInfo) throws Exception;


    //增删改的返回值都是整数
    //增加
    Integer addFocusOnTheTypeOfCompetition(FocusOnTheTypeOfCompetition focusOnTheTypeOfCompetition) throws Exception;

    //删除
    Integer deleteFocusOnTheTypeOfCompetitionByFocno(String focno) throws Exception;

    //修改
    Integer updateFocusOnTheTypeOfCompetitionByFocno(FocusOnTheTypeOfCompetition focusOnTheTypeOfCompetition) throws Exception;
    
}
